[#escape x as x?html]
<!DOCTYPE html>
<html>
<head>
	[#include "/include/meta.ftl" /] 
	[#include "/include/css.ftl" /]
	<title>系统设置</title> 
	[#include "/include/js.ftl" /]
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">

		<div class="content-wrapper margin-left0">
	        [#assign firstNavName="系统"]
	        [#assign secondNavName="系统设置"]
			[#include "/include/contentHeader.ftl" /]

			<section class="content">
				<div class="box box-success">
					<form id="form" action="update" method="post" class="form-horizontal">
						<div class="box-body">
							<div class="nav-tabs-custom">
					            <ul class="nav nav-tabs">
					                <li class="active"><a href="#site" data-toggle="tab" aria-expanded="false">网站</a></li>
					                <li><a href="#contact" data-toggle="tab">联系方式</a></li>
					                <li ><a href="#settings" data-toggle="tab" aria-expanded="true">设置</a></li>
					            </ul>
					            <div class="tab-content">
					            	<div class="tab-pane active" id="site">
					                	<div class="form-group">
					                  		<label class="col-sm-2 control-label">网站标题</label>
											<div class="col-sm-6">
											  <input type="text" name="siteName" value="${setting.siteName}" class="form-control" placeholder="网页标题">
											</div>
						                </div>
					                	<div class="form-group">
					                  		<label class="col-sm-2 control-label">顶部标题1</label>
											<div class="col-sm-6">
											  <input type="text" name="title1" value="${setting.title1}" class="form-control" placeholder="标题1">
											</div>
						                </div>
					                	<div class="form-group">
					                  		<label class="col-sm-2 control-label">顶部标题2</label>
											<div class="col-sm-6">
											  <input type="text" name="title2" value="${setting.title2}" class="form-control" placeholder="标题2">
											</div>
						                </div>
					                	<div class="form-group">
					                  		<label class="col-sm-2 control-label">网站网址</label>
											<div class="col-sm-6">
											  <input type="text" name="siteUrl" value="${setting.siteUrl}" class="form-control" placeholder="网站网址">
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">网站关键词</label>
											<div class="col-sm-6">
											  <textarea name="siteKeywords" class="form-control" placeholder="关键词" rows="5">${setting.siteKeywords}</textarea>
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">网站描述</label>
											<div class="col-sm-6">
											  <textarea name="siteDescription" class="form-control" placeholder="描述" rows="7">${setting.siteDescription}</textarea>
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">网站logo</label>
											<div class="col-sm-6">
												<div class="input-group">
												    <input type="text" name="logo" value="${setting.logo}" class="form-control inpLogo" readonly placeholder="logo">
												    <span class="input-group-btn">
										        		<button type="button" class="btn btn-info btnChooseFile">选择</button>
										        		<input type="file" id="imgFile" class="hidden"/>
										        	</span>
									        	</div>
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">logo预览</label>
											<div class="col-sm-6">
												<img id="imgContent" src="${setting.logo}" style="max-height:100px;"/>
											</div>
						                </div>
						             </div>
						             <div class="tab-pane" id="contact">
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">地址</label>
											<div class="col-sm-6">
											  <input type="text" name="address" value="${setting.address}" class="form-control" placeholder="地址">
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">电话</label>
											<div class="col-sm-6">
											  <input type="text" name="phone" value="${setting.phone}" class="form-control" placeholder="电话">
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">传真</label>
											<div class="col-sm-6">
											  <input type="text" name="fax" value="${setting.fax}" class="form-control" placeholder="传真">
											</div>
						                </div>
						                <div class="form-group">
					                  		<label class="col-sm-2 control-label">邮箱</label>
											<div class="col-sm-6">
											  <input type="text" name="mail" value="${setting.mail}" class="form-control" placeholder="邮箱">
											</div>
						                </div>
					                </div>
					                <!-- /.tab-pane -->
					                <div class="tab-pane" id="settings">
					              		<div class="form-group">
					                  		<label class="col-sm-2 control-label">文件上传目录</label>
											<div class="col-sm-6">
											  <input type="text" name="path" class="form-control" placeholder="目录">
											</div>
						                </div>
					              		<div class="form-group">
					                  		<label class="col-sm-2 control-label">连续登陆最多失败次数</label>
											<div class="col-sm-6">
											  <input type="text" name="accountLockCount" value="${setting.accountLockCount}" class="form-control" >
											</div>
						                </div>
					              		<div class="form-group">
					                  		<label class="col-sm-2 control-label">账号自动解锁时间</label>
											<div class="col-sm-6">
											  <input type="text" name="accountLockTime" value="${setting.accountLockTime}" class="form-control" > 分钟
											</div>
						                </div>
					               </div>
					                <!-- /.tab-pane -->
				                </div>
				                <!-- /.tab-content -->
				            </div>
						</div>
						<div class="box-footer">
							<div class="row">
								<div class="col-sm-offset-2">
		                			<button id="btnSubmit" type="button" class="btn btn-primary">保存</button>
								</div>
							</div>
		                </div>
					</form>
				</div>
			</section>
		</div>

	</div>
	<!-- ./wrapper -->
	<script type="text/javascript">
		require([ 'admin/js/setting/edit', 'bootstrap'], function(Page) {
			Page.main();
		});
	</script>
</body>
</html>
[/#escape]